import json
#  json.loads(json_string) 把字符串转成json

str = '''
[{
    "name": "Tom",
    "gender": "male"

},{
    "name": "Jack",
     "gender": "male"

}]
'''
print(type(str))
data  = json.loads(str)
print(type(data))
print(data)